//
//  ZZMusicList.m
//  ZZBlue
//
//  Created by stonesMonkey on 2017/9/16.
//  Copyright © 2017年 stonesMonkey. All rights reserved.
//

#import "ZZMusicList.h"

@implementation ZZMusicList


-(void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeBool:self.isShow forKey:@"isShow"];
    [aCoder encodeObject:self.listName forKey:@"listName"];
    [aCoder encodeObject:self.musicList forKey:@"musicList"];
    [aCoder encodeObject:self.signName forKey:@"signName"];
     [aCoder encodeBool:self.isSelect forKey:@"isSelect"];
}

-(instancetype)initWithCoder:(NSCoder *)aDecoder
{
    if (self = [super init]) {
        self.isShow = [aDecoder decodeBoolForKey:@"isShow"];
        self.listName = [aDecoder decodeObjectForKey:@"listName"];
        self.musicList = [aDecoder decodeObjectForKey:@"musicList"];
         self.signName = [aDecoder decodeObjectForKey:@"signName"];
        self.isSelect = [aDecoder decodeBoolForKey:@"isSelect"];
    }
    return self;
}



#pragma mark - set & get

- (NSMutableArray *)musicList {
    
    if (!_musicList) {
        
        _musicList = [NSMutableArray array];
    }
    return _musicList;
}



@end

